import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import HelloWorld from "../components/HelloWorld";
import ThreeWorld from "../components/ThreeWorld";
import ThreeLoader from "../components/ThreeLoader";

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'threeworld',
    component: ThreeWorld
  },
  {
    path: '/about',
    name: 'Home',
    component: Home
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    // component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
    {
      path:'/threeworld',
      name:'ThreeWorld',
      component: () => import('../components/ThreeWorld.vue')
    }

]

// const router = new VueRouter({
//   mode: 'history',
//   // base: process.env.BASE_URL,
//   base:'/mythree/',
//   routes
// })

export default routes
